package com.sg.dto.biz.bff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffTaskCategoriesThemeDto
 * @使用场景
 */
@Data
public class BffTaskCategoriesThemeDto implements Serializable {

    /**
     * 主题标识
     */
    @ApiModelProperty("主题标识")
    private String themeCode;

    /**
     * 周期名称
     */
    @ApiModelProperty("周期名称")
    private String cycleStandardName;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffTaskCategoriesThemeDto that = (BffTaskCategoriesThemeDto) o;
        return themeCode == that.themeCode && cycleStandardName == that.cycleStandardName;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), themeCode, cycleStandardName);
    }

}
